﻿using Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AnesSystem.Models
{
    public class ZhiKongXingXiModel: ObservableObject
    {
        private int id;
        private string name;
        private string displayName;
        private string group;
        private int parentId;

        public ZhiKongXingXiModel(string name, string displayName, string group)
        {

            this.name = name;
            this.displayName = displayName;
            this.group = group;

        }

        public ZhiKongXingXiModel(int id, string name, string displayName, string group, int parentId)
        {
            this.id = id;
            this.name = name;
            this.displayName = displayName;
            this.group = group;
            this.parentId = parentId;
        }

        public int Id
        {
            get
            {
                return id;
            }

            set
            {
                id = value;
            }
        }

        public string Name
        {
            get
            {
                return name;
            }

            set
            {
                name = value;
            }
        }

        public string DisplayName
        {
            get
            {
                return displayName;
            }

            set
            {
                displayName = value;
            }
        }

        public string Group
        {
            get
            {
                return group;
            }

            set
            {
                group = value;
            }
        }

        public int ParentId
        {
            get
            {
                return parentId;
            }

            set
            {
                parentId = value;
            }
        }

        public override string ToString()
        {
            return displayName;
        }
    }

}
